<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title><?php
	global $page, $paged;
	wp_title( '|', true, 'right' );
	bloginfo( 'name' );
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";
	if ( $paged >= 2 || $page >= 2 )
		echo ' | 第' . max( $paged, $page ) . '页';
?>
</title>
<?php
if ( is_single() ) {
	echo '<meta name="description" content="' . trim($description) . '" />
<meta name="keywords" content="' . rtrim($keywords , ',') . '" />';
}
if ( is_home() ) {
	echo '<meta name="keywords" content="' . get_option('txtjee_keywords') . '" />
<meta name="description" content="' . get_option('txtjee_description') . '" />';
}
?>

<link rel="shorcut icon" href="<?php bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-ico">
<link rel="stylesheet" type="text/css" media="screen" href="<?php bloginfo('template_url'); ?>/style.css">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - 所有文章" href="<?php echo get_bloginfo('rss2_url'); ?>">
<link rel="alternate" type="application/rss+xml" title="RSS 2.0 - 所有评论" href="<?php bloginfo('comments_rss2_url'); ?>">
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/includes/jquery.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/includes/jquery.web.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/includes/jquery.lazyload.js"></script>
<?php if ( is_home() ) : ?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/includes/jquery.slides.js"></script>
<?php endif; ?>
<?php if ( is_singular() && get_option( 'thread_comments' ) ) : ?>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/comments-ajax.js"></script>
<?php endif; ?>
<?php wp_head(); ?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-28940874-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
<script type="text/javascript" src="http://cbjs.baidu.com/js/m.js"></script>
</head>
<?php flush(); ?>
<body>
<div class="header">
	<h1><a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><?php bloginfo('name'); ?></a></h1>
	<div class="sponsor" id="ADHeader1">AD</div>
	<div class="passport">
<?php global $user_ID, $user_login, $user_identity, $user_level;
if ( !is_user_logged_in() ):  ?>
		<a href="<?php echo wp_login_url( is_home() ? get_home_url() : get_permalink() ); ?>" rel="nofollow">请登录</a> 或 <a href="/wp-login.php?action=register" rel="nofollow">免费注册</a>
<?php else: ?>
		Hi，<a href="<?php echo admin_url(); ?>profile.php" class="n"><?php echo $user_identity ?></a>！<a href="<?php echo wp_logout_url( is_home() ? get_home_url() : get_permalink() ); ?>">登出</a>？<a href="<?php echo home_url(); ?>/author/<?php echo $user_login ?>">查看专栏</a>
<?php endif; ?>
	</div>
	<div class="slogan">
		<p>追求品质，追求卓越的原创诗文天地...</p>
		<div class="follow">
			<a href="http://weibo.com/youmeiwenzi" target="_blank" class="weibo">关注</a>
			<a href="http://t.qq.com/youmeiwenzi_com" target="_blank" class="tqq">收听</a>
		</div>
	</div>
</div>
<div class="nav">
	<div class="inner">
		<div id="Menu" class="menu">
			<ul>
				<li><a title="优美文字网 首页" href="http://www.youmeiwenzi.com/">首页</a></li>
				<li class="dropdown"><a title="阅读所有诗文" href="http://www.youmeiwenzi.com/c/read">阅读</a></li>
				<li><a title="随机推荐" href="http://www.youmeiwenzi.com/random" rel="nofollow">随机</a></li>
				<li><a title="标签云集" href="http://www.youmeiwenzi.com/tags">标签</a></li>
				<li><a title="絮语 文字交流区" href="http://www.youmeiwenzi.com/say">絮语</a></li>
				<li><a title="投稿 至 优美文字网" href="http://www.youmeiwenzi.com/submit" rel="nofollow">投稿</a></li>
			</ul>
		</div>
		<script type="text/javascript">NavMenu();</script>
		<div class="search">
			<form action="<?php bloginfo('home'); ?>" method="get" id="SearchBar">
				<input name="s" type="text" accesskey="S" id="searchtxt" class="inpt" value="<?php echo wp_specialchars($s, 1); ?>" />
				<input type="image" id="searchbtn" src="<?php bloginfo('template_url'); ?>/images/n.gif" class="btn" />
			</form>
		</div>
		<script type="text/javascript">SearchBar();</script>
	</div>
</div>